package com.topc.platform.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.topc.base.model.PageParams;
import com.topc.base.model.PageResult;
import com.topc.platform.model.po.AnnouncementInfo;
import com.topc.platform.model.dto.SaveAnnouncementDto;
import com.topc.platform.model.vo.AnnouncementShowVo;
import com.topc.platform.model.vo.AnnouncementTitleShowVo;

import java.util.List;

/**
 * <p>
 * 公告信息 服务类
 * </p>
 *
 * @author itcast
 * @since 2024-01-22
 */
public interface IAnnouncementInfoService extends IService<AnnouncementInfo> {

    PageResult<AnnouncementShowVo> searchInfoByPage(PageParams pageParams, String title, int status);

    String getContentById(Long id);


    void saveInfo(SaveAnnouncementDto saveAnnouncementDto);


    void updateInfoById(Long id, SaveAnnouncementDto saveAnnouncementDto);

    void removeInfoById(Long id);

    AnnouncementShowVo getDetailById(Long id);

    AnnouncementInfo getInfoById(Long id);

    List<AnnouncementTitleShowVo> searchTitle();
}
